#!/bin/bash
#解决deepin15.11突然无法开启窗口特效
#solve deepin15.11 can't open Window effects

echo "你确定想要运行修复deepin15无法开启窗口特效的脚本吗？[y/n]"
read cmd
echo $cmd
if [ "$cmd" == "y" ];then
	echo "开始运行脚本"
	sudo apt purge dde-kwin
	rm ~./config/kwinrc
	rm ~./config/kglobalshortcutsrc
	rm ~./config/kwinrulesrc

	sudo apt yupdate && sudo apt install dde-kwin 

	echo "操作完成！请注销或者重启电脑！"

	exit 0
fi

echo "取消运行"
exit 0

